package cn.rocksolid.sport.assist.sms;

import java.util.Map;

import org.apache.commons.collections4.MapUtils;

import cn.rocksolid.sport.common.error.RSE;
import cn.rocksolid.sport.common.error.RockSolidException;

public abstract class AbstractSmsProvider {

  protected Map<String, String> config;

  public AbstractSmsProvider(Map<String, String> config) {
    if (MapUtils.isEmpty(config)) {
      throw new RockSolidException(RSE.INVALID_SMSP_CONF);
    }
    this.config = config;
  }

  public Map<String, String> getConfig() {
    return this.config;
  }
}
